package com.rpa.server.servicerpaserver.pojo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.openqa.selenium.Cookie;

import java.util.Date;

public class Cookies extends Cookie {
    public Cookies(){
        super(null,null);
    }

    public Cookies(String name, String value, String path, Date expiry) {
        super(name, value, path, expiry);
    }

    public Cookies(String name, String value, String domain, String path, Date expiry) {
        super(name, value, domain, path, expiry);
    }

    public Cookies(String name, String value, String domain, String path, Date expiry, boolean isSecure) {
        super(name, value, domain, path, expiry, isSecure);
    }
    @JsonCreator
    public Cookies(@JsonProperty("name")String name, @JsonProperty("value") String value, @JsonProperty("domain") String domain, @JsonProperty("path")  String path, @JsonProperty("expiry") Date expiry, @JsonProperty("secure")boolean isSecure, @JsonProperty("httpOnly") boolean isHttpOnly) {
        super(name, value, domain, path, expiry, isSecure, isHttpOnly);
    }

    public Cookies(String name, String value) {
        super(name, value);
    }

    public Cookies(String name, String value, String path) {
        super(name, value, path);
    }
}
